<%@page language="java" pageEncoding="UTF-8" contentType="text/html;charset=utf-8"%>
<%@include file="/includes/taglibs.jsp"%>
<%@page import="com.feib.soeasy.util.UserUtil"%>
<%@page import="java.util.Map"%>
<%@page import="com.feib.soeasy.util.CodeTableUtil"%>
<%@page import="com.feib.soeasy.action.Soez5001ActionBean"%>	

<c:choose>
	<c:when test="${null != actionBean.payment }">

<div id="feedbackLogViewDiv">
	<table id="listTable">
		<thead>
		<tr>
			<th>帳號：<c:out value="${actionBean.payment.virtualAccount}"/></th>
			<th>戶名：<c:out value="${actionBean.payment.payerName}"/></th>
			<th>已繳／應繳：
				<c:if test="${actionBean.payment.period != null}">
					<c:out value="${actionBean.payed}"/>／<c:out value="${actionBean.payment.period}"/>
				</c:if>
			</th>
		</tr>
		</thead>
	</table>
	<table id="listTable">
		<thead>
			<tr>
				<th>交易日</th>
				<th>存／提</th>			
				<th>交易金額</th>
				<th>結餘</th>
				<th>繳費通路</th>
			</tr>
		</thead>
		<tbody>
			<c:forEach items="${actionBean.p0028Details}" var="viewObj" varStatus="rowstat">
			<tr>			
				<td align="center"><c:out value="${viewObj.aday}" /></td>
				<td align="center"><c:out value="${viewObj.crdb}" /></td>					
				<td align="right">
					<fmt:formatNumber value="${viewObj.txamt}" pattern="##,###" />
				</td>	
				<td align="right">
					<fmt:formatNumber value="${viewObj.avbal}" pattern="##,###" />
				</td>		
				<td>
					<c:out value="${viewObj.memo}" />
				</td>
			</tr>
			</c:forEach>
		</tbody>
	</table>
	<div id="paginationBar">
		<input type="button" id="printBtn3" value="列印" />
	</div>
</div>

<script type="text/javascript">	
	<!--
	$(document).ready(function() {
		$('#printBtn3').click(function() {
			divPrint('detailDiv');//只印目前這筆
		});
	});
	//-->
</script>

<div id="cancelPaymentMsgDiv" style="display: none; ">
</div>
		

	</c:when>
	<c:otherwise>
		<div id="queryNothingBlockDiv" style="display: none;">
			查無資料
		</div>	
		<script type="text/javascript">
		<!--
		$(document).ready(function() {
			$( "#paymentsItemDiv" ).dialog( "destroy" );
			$( "#paymentsItemDiv" ).dialog({  title:'繳費單資料' ,width: 600, resizable: false, modal: true  });
		});
		//-->
		</script>
	</c:otherwise>
</c:choose>